/*
  @author: 13813
  @date: 2024/11/13 14:50
*/
public class MethodDemo04 {
    public static void main(String[] args) {
        String[][] stus = new String[10][3];
        int index = 0;
        addStu("张三", "20", "男", stus, index);
        index++;
        addStu("李四", "40", "女", stus, index);
        index++;
        addStu("王五", "50", "女", stus, index);
    }

    public static void addStu(String name, String age, String sex, String[][] arr, int index) {
//        System.out.println("name = " + name);
//        System.out.println("age = " + age);
//        System.out.println("sex = " + sex);
        String[] stu = new String[3];
        stu[0] = name;
        stu[1] = age;
        stu[2] = sex;
        //把一维数组 存储到 二维数组
        arr[index] = stu;
    }

    public static void removeStu(String name) {
        System.out.println("name = " + name);
    }

    public static void listStu() {

    }
}
